package com.walker.message.service;

import org.springframework.amqp.rabbit.annotation.Exchange;
import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.QueueBinding;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;


@Component
public class RabbitMessageService {
	
	@RabbitListener(bindings = @QueueBinding(value = @Queue("rabbit-message"), key = "product-msg", exchange = @Exchange("product")))
//	@RabbitListener(queues = "rabbit-message")
	public void receiverMessage(String message) {
		System.out.println("==================================> rabbit mq receiver message :" + message);
	}
}
